// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.Xpack;

[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Xpack.Json.RuntimeFieldsTypeConverter))]
public sealed partial class RuntimeFieldsType
{
	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	public RuntimeFieldsType(long charsMax, long charsTotal, long count, long docMax, long docTotal, long indexCount, System.Collections.Generic.IReadOnlyCollection<string> lang, long linesMax, long linesTotal, string name, long scriptlessCount, long shadowedCount, long sourceMax, long sourceTotal)
	{
		CharsMax = charsMax;
		CharsTotal = charsTotal;
		Count = count;
		DocMax = docMax;
		DocTotal = docTotal;
		IndexCount = indexCount;
		Lang = lang;
		LinesMax = linesMax;
		LinesTotal = linesTotal;
		Name = name;
		ScriptlessCount = scriptlessCount;
		ShadowedCount = shadowedCount;
		SourceMax = sourceMax;
		SourceTotal = sourceTotal;
	}
#if NET7_0_OR_GREATER
	public RuntimeFieldsType()
	{
	}
#endif
#if !NET7_0_OR_GREATER
	[System.Obsolete("The type contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")]
	public RuntimeFieldsType()
	{
	}
#endif
	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	internal RuntimeFieldsType(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
	{
		_ = sentinel;
	}

	public
#if NET7_0_OR_GREATER
	required
#endif
	long CharsMax { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long CharsTotal { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long Count { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long DocMax { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long DocTotal { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long IndexCount { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	System.Collections.Generic.IReadOnlyCollection<string> Lang { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long LinesMax { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long LinesTotal { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	string Name { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long ScriptlessCount { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long ShadowedCount { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long SourceMax { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long SourceTotal { get; set; }
}